package com.cgbl.cg.vm.mine

import android.app.Application
import com.robot.base.base.vm.GLBaseViewModel
import com.robot.base.configs.AppConstants
import com.robot.base.util.arouter.ARouterUtil
import me.goldze.mvvmhabit.binding.command.BindingAction
import me.goldze.mvvmhabit.binding.command.BindingCommand
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent

class OfflineCacheViewModel(application: Application) : GLBaseViewModel(application) {

    val uc = UiChangeEvent()

    val clickAllDeleteCommand = BindingCommand<Any>(BindingAction {
        uc.doAllDelete.postValue("")
    })

    class UiChangeEvent {
        val doAllDelete: SingleLiveEvent<String> = SingleLiveEvent()

    }
}